import express from 'express';

// 引入各个模块的路由
import userRoutes from './user.js';
import categoryRoutes from './category.js'; 
import articleRoutes from './article.js';
import commentRoutes from './comment.js';
import dataRoutes from './data.js';

const router = express.Router();

// 注册各个模块的路由
router.use('/user', userRoutes);
router.use('/category', categoryRoutes);
router.use('/article', articleRoutes);
router.use('/comment', commentRoutes);
router.use('/data', dataRoutes);

export default router;
